﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ScriptManager.ScriptResourceMapping.AddDefinition("jquery", new ScriptResourceDefinition
            {
                Path = "~/scripts/jquery-3.4.1.min.js",
                DebugPath = "~/scripts/jquery-3.4.1.js",
                CdnPath = "http://ajax.microsoft.com/ajax/jQuery/jquery-3.4.1.min.js",
                CdnDebugPath =
   "http://ajax.microsoft.com/ajax/jQuery/jquery-3.4.1.js"
            });
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //Session["name"] = TextBox1.Text;
            //Session["password"] = TextBox2.Text;
            //Response.Redirect("WebForm2.aspx");
            string username = TextBox1.Text;
            string password = TextBox2.Text;
            Response.Redirect("WebForm2.aspx?username="+username+"&password="+password+"");
        }
        //protected void Button2_Click(object sender, EventArgs e)
        //{
        //    string username = Request.Form["TextBox1"];
        //    string password = Request.Form["TextBox2"];
        //    Response.Redirect(string.Format("WebForm2.aspx?username="+username+"&password="+password+""));
        //}
    }
}